package C.e.Binary;
/**补码的演示*/
public class ComplementDemo {
    public static void main(String[] args) {
        int a=-30;
        System.out.println(Integer.toBinaryString(a));
        System.out.println(a);






























        /*int max= Integer.MAX_VALUE;
        int min= Integer.MIN_VALUE;
        System.out.println(Integer.toBinaryString(max));     //1111111111111111111111111111111
        System.out.println(Integer.toBinaryString(-1));   //11111111111111111111111111111111
        System.out.println(Integer.toBinaryString(min));     //10000000000000000000000000000000
         */
    }
}
